{% with overlay=analysis.static.pe.overlay %}
{% with fileinfo=overlay.fileinfo %}

{%if fileinfo %}
<div class="panel panel-default">
    <table class="table table-striped table-bordered" style="table-layout: fixed;">
        <tr>
            <th style="border-top: 0; width: 15%;">File name</th>
            <td>
                <div style="border-top: 0; word-wrap: break-word;"><b>{{fileinfo.name|safe}}</b></div>
            </td>
        </tr>
        <tr>
            <th>File Size</th>
            <td>{{fileinfo.size}} bytes</td>
        </tr>
        <tr>
            <th>File Type</th>
            <td style="word-wrap: break-word;">{{fileinfo.type}}</td>
        </tr>
        <tr>
            <th>MD5</th>
            <td style="word-wrap: break-word;">{{fileinfo.md5}}</td>
        </tr>
        <tr>
            <th>SHA1</th>
            <td style="word-wrap: break-word;">{{fileinfo.sha1}}</td>
        </tr>
        <tr>
            <th>SHA256</th>
            <td style="word-wrap: break-word;">{{fileinfo.sha256}}</td>
        </tr>
        {% if fileinfo.sha3_384 %}
        <tr>
            <th>SHA3-384</th>
            <td style="word-wrap: break-word;">{{fileinfo.sha3_384}}</td>
        </tr>
        {% endif %}
        <tr>
            <th>CRC32</th>
            <td>{{fileinfo.crc32}}</td>
        </tr>
        {% if fileinfo.tlsh %}
        <tr>
            <th>TLSH</th>
            <td style="word-wrap: break-word;">{{fileinfo.tlsh}}</td>
        </tr>
        {% endif %}
        <tr>
            <th>Ssdeep</th>
            <td style="word-wrap: break-word;">{{fileinfo.ssdeep}}</td>
        </tr>
        <tr>
            <th></th>
            <td>
                <a href="{% url "file" "dropped" analysis.info.id fileinfo.name %}" class="btn btn-secondary btn-sm">Download</a>
                {% if overlay.data %}
                &emsp;<a class="btn btn-secondary btn-sm" data-toggle="collapse" href="#h_{{file.sha256}}">Display Overlay Data (Up to 4KB)</a>
                {% endif %}
            </td>
        </tr>
        {% if overlay.data %}
        <tr id="h_{{file.sha256}}" class="collapse">
            <td colspan="2"><pre>{{overlay.data}}</pre></td>
        </tr>
        {% endif %}
    </table>
</div>
{%else%}
<div class="alert alert-secondary"><b>Sorry!</b> No overlay information.</div>
{% endif %}

{% endwith %}
{% endwith %}
